use core::ptr::NonNull;

pub struct Ddma {
    pub base: NonNull<u8>,
}

unsafe impl Send for Ddma {}
unsafe impl Sync for Ddma {}

impl Ddma {
    pub const fn new(base: *mut u8) -> Self {
        Self { base: NonNull::new(base).unwrap() }
    }
    #[inline(always)]
    pub(crate) const fn base(&self) -> *mut u8 { self.base.as_ptr() }
}


